package pl.auction_search.search;

import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.ui.views.properties.IPropertySource;

@SuppressWarnings("unchecked") public class ResultPropertySourceAdapterFactory implements IAdapterFactory {
	public Object getAdapter(Object adaptableObject, Class adapterType) {
		if (adapterType == IPropertySource.class) {
			return new ResultPropertySource((Result) adaptableObject);

		} else {
			return null;

		}
	}

	public Class[] getAdapterList() {
		return new Class[] {
			IPropertySource.class
		};
	}
}